#include "stdafx.h"
#pragma once

using namespace std;
class ChatFile
{
public:
	ChatFile(void);

public:
	~ChatFile(void);
	void reportfile(CString me,CString user,CString n );      
	void reportfile1(CString user,CString n ); 

	void userwrite(CString title,CString m,CString n );
	void titlefile(CString title);	
	CString fileread(CString user); 
	//vector<string> fileread(CString user);
	CString searchfile(CString user,CString key);

	void writetitleuser(CString title,CString user);
	vector<string> readtitleuser(CString title);

	void writetitle(CString title );
	vector<string> readtitle();
	
	void writefriend(CString user);
	vector<string> readfriend();
};
